// src/components/date-picker.vue

<template>
    <div class="date-picker">
        <!-- 指明该元素继承 -->
        <input type="datetime" v-bind="$attrs" />  
    </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
    name: 'DatePicker',
    inheritAttrs: false, //禁用继承
})
</script>